const mongoose = require('mongoose')

let commentsSchema = new mongoose.Schema({
    uid: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'adminModel',
    },
    text: {
        type: String,
        require: true,
    },
    time: {
        type: Date,
        require: true,
    },

})

let commentsModel = mongoose.model('comments', commentsSchema )

module.exports = commentsModel